import home from './views/page/home.vue';

const routers = [{
    name: 'index',
    path: '/',
    meta: {
        title: ''
    },
    component: (resolve) => require(['./views/index.vue'], resolve)
},{
    name: 'home',
    path:'/page/home',
    meta:{
        title:'',
        requireAuth: true,  // 添加该字段，表示进入这个路由是需要登录的
    },
    component:(resolve) => require(['./views/page/home.vue'],resolve)
},
//作为page/home.vue组件的子组件
{
    name:'page',
    path:'/page',
    component:home,
    meta:{
        title:'',
        requireAuth: true,  // 添加该字段，表示进入这个路由是需要登录的
    }, 
    children:[
        {
            name: 'homePage',
            path:'/page/homePage',
            meta:{
                title:'',
                requireAuth: true,  // 添加该字段，表示进入这个路由是需要登录的
            }, 
            component:(resolve) => require(['./views/page/homePage.vue'],resolve)
        },
        {
            name: 'aboutUsCom',
            path:'/page/aboutUs/aboutUsCom',
            meta:{
                title:'',
                requireAuth: true,  // 添加该字段，表示进入这个路由是需要登录的
            },  
            component:(resolve) => require(['./views/page/aboutUs/aboutUsCom.vue'],resolve)
        },
        {
            name: 'aboutUsCon',
            path:'/page/aboutUs/aboutUsCon',
            meta:{
                title:'',
                requireAuth: true,  // 添加该字段，表示进入这个路由是需要登录的
            },  
            component:(resolve) => require(['./views/page/aboutUs/aboutUsCon.vue'],resolve)
        },
        {
            name: 'aboutUsKow',
            path:'/page/aboutUs/aboutUsKow',
            meta:{
                title:'',
                requireAuth: true,  // 添加该字段，表示进入这个路由是需要登录的
            },  
            component:(resolve) => require(['./views/page/aboutUs/aboutUsKow.vue'],resolve)
        },
        {
            name: 'aboutUsBus',
            path:'/page/aboutUs/aboutUsBus',
            meta:{
                title:'',
                requireAuth: true,  // 添加该字段，表示进入这个路由是需要登录的
            },  
            component:(resolve) => require(['./views/page/aboutUs/aboutUsBus.vue'],resolve)
        },
        {
            name: 'aboutUsQua',
            path:'/page/aboutUs/aboutUsQua',
            meta:{
                title:'',
                requireAuth: true,  // 添加该字段，表示进入这个路由是需要登录的
            },  
            component:(resolve) => require(['./views/page/aboutUs/aboutUsQua.vue'],resolve)
        },
        {
            name: 'newsXietun',
            path:'/page/news/newsXietun',
            meta:{
                title:'',
                requireAuth: true,  // 添加该字段，表示进入这个路由是需要登录的
            },  
            component:(resolve) => require(['./views/page/news/newsXietun.vue'],resolve)
        },
        {
            name: 'newsCenter',
            path:'/page/news/newsCenter',
            meta:{
                title:'',
                requireAuth: true,  // 添加该字段，表示进入这个路由是需要登录的
            },  
            component:(resolve) => require(['./views/page/news/newsCenter.vue'],resolve)
        },
        {
            name: 'product',
            path:'/page/product',
            meta:{
                title:'',
                requireAuth: true,  // 添加该字段，表示进入这个路由是需要登录的
            },  
            component:(resolve) => require(['./views/page/product.vue'],resolve)
        },
        {
            name: 'pof',
            path:'/page/introduction/pof',
            meta:{
                title:'',
                requireAuth: true,  // 添加该字段，表示进入这个路由是需要登录的
            },  
            component:(resolve) => require(['./views/page/introduction/pof.vue'],resolve)
        },
        {
            name: 'fundInvestment',
            path:'/page/introduction/fundInvestment',
            meta:{
                title:'',
                requireAuth: true,  // 添加该字段，表示进入这个路由是需要登录的
            },  
            component:(resolve) => require(['./views/page/introduction/fundInvestment.vue'],resolve)
        },
        {
            name: 'investmentStrategy',
            path:'/page/introduction/investmentStrategy',
            meta:{
                title:'',
                requireAuth: true,  // 添加该字段，表示进入这个路由是需要登录的
            },  
            component:(resolve) => require(['./views/page/introduction/investmentStrategy.vue'],resolve)
        },
        {
            name: 'telUs',
            path:'/page/telUs',
            meta:{
                title:'',
                requireAuth: true,  // 添加该字段，表示进入这个路由是需要登录的
            },  
            component:(resolve) => require(['./views/page/telUs.vue'],resolve)
        }
    ]
    
}];

export default routers;